package com.zdb.demo.design.principle.singleresponsibility;

public class TestBird {

//    v1
//    public static void main(String[] args) {
//        Bird bird = new Bird();
//        bird.mainMoveMode("大雁");
//        bird.mainMoveMode("鸵鸟");
//    }

    public static void main(String[] args) {
        Bird bird = new FlyBird();
        bird.mainMoveMode("大雁");

        Bird tn = new WalkBird();
        bird.mainMoveMode("鸵鸟");
    }
}
